package com.offcn.order.service.impl;

import com.offcn.common.response.AppResponse;
import com.offcn.order.pojo.TReturn;
import com.offcn.order.service.ProjectFeignService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ProjectFeignFallback implements ProjectFeignService {
    @Override
    public AppResponse<List<TReturn>> getReturnList(Integer projectId) {
        AppResponse<List<TReturn>> fail = AppResponse.fail(null);
        fail.setMsg("远程调用 回报数据集合 失败");
        return fail;
    }

    @Override
    public AppResponse<TReturn> getReturnById(Integer returnId) {
        AppResponse<TReturn> fail = AppResponse.fail(null);
        fail.setMsg("远程调用 回报数据 失败");
        return fail;
    }
}
